<!--#include file="..\lib\core.asp"-->
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>FrameWork Test Page</title>
    <style>
      * {
        font-family: 微软雅黑;
      }
      table.dataintable {
        margin-top: 10px;
        border-collapse: collapse;
        border: 1px solid #aaa;
        width: 100%;
      }
      table.dataintable th {
        vertical-align: baseline;
        padding: 5px 15px 5px 6px;
        background-color: #d5d5d5;
        border: 1px solid #aaa;
        text-align: left;
      }
      table.dataintable td {
        vertical-align: text-top;
        padding: 6px 15px 6px 6px;
        background-color: #efefef;
        border: 1px solid #aaa;
      }
    </style>
  </head>
  <body>
      <table class="dataintable">
        <tr>
          <th>项目</th>
          <th>测试代码</th>
          <th>预期</th>
          <th>实际</th>
        </tr>
        <tr>
          <td>IIf(Exp expression,Exp truepart,Exp falsepart)</td>
          <td>IIf(5 &gt; 1, "love", "hate")</td>
          <td>love</td>
          <td><%= IIf(5 > 1, "love", "hate") %></td>
        </tr>
        <tr>
          <td>IsBlank(String text)</td>
          <td>IsBlank(3)</td>
          <td>False</td>
          <td><%= IsBlank(3) %></td>
        </tr>
        <tr>
          <td>FormatDate(adate, matchcode)</td>
          <td>FormatDate(Now, "yyyy-MM-dd HH:mm:ss")</td>
          <td>2016-03-11 13:23:33</td>
          <td><%= FormatDate(Now, "yyyy-MM-dd HH:mm:ss") %></td>
        </tr>
        <tr>
          <td>DoubleDigitStr(s)</td>
          <td>DoubleDigitStr("7")</td>
          <td>07</td>
          <td><%= DoubleDigitStr("7") %></td>
        </tr>
        <tr>
          <td>RJust(text, length, prechar)</td>
          <td>RJust("love", 7, "*")</td>
          <td>***love</td>
          <td><%= RJust("love", 7, "*") %></td>
        </tr>
        <tr>
          <td>CurrentUrl()</td>
          <td>CurrentUrl()</td>
          <td>localhost:8001/test/t_core.asp</td>
          <td><%= CurrentUrl() %></td>
        </tr>
        <tr>
          <td>Referer()</td>
          <td>Referer()</td>
          <td>[来源路径]</td>
          <td><%= Referer() %></td>
        </tr>
        <tr>
          <td>VisitorIP()</td>
          <td>VisitorIP()</td>
          <td>[来源IP]</td>
          <td><%= VisitorIP() %></td>
        </tr>
        <tr>
          <td>HtmlSafe(html)</td>
          <td>HtmlSafe("&lt;script&gt;")</td>
          <td>&lt;&gt;</td>
          <td><%= HtmlSafe("<script>") %></td>
        </tr>
        <tr>
          <td>HtmlSafeE(html)</td>
          <td>HtmlSafeE("&lt;script&gt;")</td>
          <td>&lt;&gt;</td>
          <td><%= HtmlSafeE("<script>") %></td>
        </tr>
        <tr>
          <td>Form_To_Value(field, request_type, value_type)</td>
          <td>Form_To_Value("action", "q", "string")</td>
          <td></td>
          <td><%= Form_To_Value("action", "q", "string") %></td>
        </tr>
        <tr>
          <% SaveText "wsse", "l.txt", "utf-8" %>
          <td>SaveText(Text, FilePath, CharsetType)</td>
          <td>SaveText "wsse", "l.txt", "utf-8"</td>
          <td>[存在文件]<%= ReadText("l.txt", "utf-8") %></td>
          <td><%= Server.MapPath("l.txt") %></td>
        </tr>
        <tr>
          <td>FileExist(ByVal FilePath)</td>
          <td>FileExist("l.txt")</td>
          <td>True</td>
          <td><%= FileExist("l.txt") %></td>
        </tr>
        <tr>
          <td>GetRawString()</td>
          <td>GetRawString()</td>
          <td>True</td>
          <td><%= GetRawString() %></td>
        </tr>
        <tr>
          <td>AesEncode(ByVal key, ByVal content)</td>
          <td>AesEncode("1234567812345678", "天气")</td>
          <td>51efd5750c84aeaadd145dfd29bc88e4</td>
          <td>
            <%= AesEncode("1234567812345678", "天气") %>
          </td>
        </tr>
        <tr>
          <td>AesDecode(ByVal key, ByVal encodedContent)</td>
          <td>AesDecode("1234567812345678", "51efd5750c84aeaadd145dfd29bc88e4")</td>
          <td>天气</td>
          <td>
            <%= AesDecode("1234567812345678", "51efd5750c84aeaadd145dfd29bc88e4") %>
          </td>
        </tr>
        <tr>
          <td>TryEncode(Byval szInput)</td>
          <td>TryEncode("科学")</td>
          <td>%E7%A7%91%E5%AD%A6</td>
          <td>
            <%= TryEncode("科学") %>
          </td>
        </tr>
        <tr>
          <td>TryDecode(Byval szInput)</td>
          <td>TryDecode("%E7%A7%91%E5%AD%A6")</td>
          <td>科学</td>
          <td>
            <%= TryDecode("%E7%A7%91%E5%AD%A6") %>
          </td>
        </tr>
        <tr>
          <td>ToURL()</td>
          <td>Server.HTMLEncode(ToURL())</td>
          <td>paramxx=%E5%A4%A9%E6%B0%94%E7%9C%9F%E5%A5%BD&amp;param2=windows&amp;param1=4</td>
          <td>
            <%= Server.HTMLEncode(ToURL()) %>
          </td>
        </tr>
        <tr>
          <td>ExistsKey()</td>
          <td>Server.HTMLEncode(ExistsKey())</td>
          <td>科学</td>
          <td>
            <%= Server.HTMLEncode(ExistsKey()) %>
          </td>
        </tr>
        <tr>
          <td>TryParamReadDB()</td>
          <td>Server.HTMLEncode(TryParamReadDB())</td>
          <td>TryParamReadDB</td>
          <td>
            <%= Server.HTMLEncode(TryParamReadDB()) %>
          </td>
        </tr>
        <tr>
          <td>TryNamedReadDB()</td>
          <td>Server.HTMLEncode(TryNamedReadDB())</td>
          <td>TryNamedReadDB</td>
          <td>
            <%= Server.HTMLEncode(TryNamedReadDB()) %>
          </td>
        </tr>
        <tr>
          <td>TryNonQuery()</td>
          <td>Server.HTMLEncode(TryNonQuery())</td>
          <td>TryNonQuery</td>
          <td>
            <%= Server.HTMLEncode(TryNonQuery()) %>
          </td>
        </tr>
        <tr>
          <td>TryParamNonQueryDB()</td>
          <td>Server.HTMLEncode(TryParamNonQueryDB())</td>
          <td>TryParamNonQueryDB</td>
          <td>
            <%= Server.HTMLEncode(TryParamNonQueryDB()) %>
          </td>
        </tr>
        <tr>
          <td>TryNamedNonQueryDB()</td>
          <td>Server.HTMLEncode(TryNamedNonQueryDB())</td>
          <td>TryNamedNonQueryDB</td>
          <td>
            <%= Server.HTMLEncode(TryNamedNonQueryDB()) %>
          </td>
        </tr>
        <tr>
          <td>TryCreate()</td>
          <td>Server.HTMLEncode(TryCreate())</td>
          <td>TryCreate</td>
          <td>
            <%= Server.HTMLEncode(TryCreate()) %>
          </td>
        </tr>
        <tr>
          <td>TryParamCreate()</td>
          <td>Server.HTMLEncode(TryParamCreate())</td>
          <td>TryParamCreate</td>
          <td>
            <%= Server.HTMLEncode(TryParamCreate()) %>
          </td>
        </tr>
        <tr>
          <td>TryNamedCreate()</td>
          <td>Server.HTMLEncode(TryNamedCreate())</td>
          <td>TryNamedCreate</td>
          <td>
            <%= Server.HTMLEncode(TryNamedCreate()) %>
          </td>
        </tr>
        <tr>
          <td>TryExecScalar()</td>
          <td>Server.HTMLEncode(TryExecScalar())</td>
          <td>TryExecScalar</td>
          <td>
            <%= Server.HTMLEncode(TryExecScalar()) %>
          </td>
        </tr>
        <tr>
          <td>TryExecParamScalar()</td>
          <td>Server.HTMLEncode(TryExecParamScalar())</td>
          <td>TryExecParamScalar</td>
          <td>
            <%= Server.HTMLEncode(TryExecParamScalar()) %>
          </td>
        </tr>
        <tr>
          <td>TryExecNamedScalar()</td>
          <td>Server.HTMLEncode(TryExecNamedScalar())</td>
          <td>TryExecNamedScalar</td>
          <td>
            <%= Server.HTMLEncode(TryExecNamedScalar()) %>
          </td>
        </tr>
      </table>
  </body>
</html>
